

<div id="content" class="span10">
			<!-- start: Content -->
			

			<div>
				<ul class="breadcrumb">
					<li>
						<a href="/admin/">Home</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="/<?= $this->_controller ?>/admin/">Downloads</a>
					</li>
				</ul>
			</div><!--/row-->

			<div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header" data-original-title>
						<h2><i class="icon-edit"></i><span class="break"></span>Formulário de: Downloads</h2>
						<div class="box-icon">
							<a href="#" class="btn-setting"><i class="icon-wrench"></i></a>
							<a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn-close"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
                    
 						<form id="downloadsFormulario" class="form-horizontal" action="/downloads/salvar/" method="post" enctype="multipart/form-data">
							<fieldset>
                            

								<div class="control-group">
									<label class="control-label" for="disabledInput">Código</label>
									<div class="controls">
										<input class="input-xlarge disabled" id="id" type="text" value="<?= $view_edit[0]["id"] ?>" size="5" disabled="">
										<input id="secao" name="secao" type="hidden" value="<?= $view_edit[0]["id"] ?>" size="5" >
									</div>
							  	</div>
								
								

								<div class="control-group">
									<label class="control-label" for="psubtitulo">subtitulo</label>
									<div class="controls">
										<input class="input-xlarge disabled" name="psubtitulo" type="text" value="<?= $view_edit[0]["subtitulo"] ?>"
										size="5" placeholder="..." >
									</div>
								</div>
										
										

								<div class="control-group">
									<label class="control-label" for="presumo">resumo</label>
									<div class="controls">
										<input class="input-xlarge disabled" name="presumo" type="text" value="<?= $view_edit[0]["resumo"] ?>"
										size="5" placeholder="..." >
									</div>
								</div>
										
										

								<div class="control-group">
									<label class="control-label" for="ppalavra_chave">palavra_chave</label>
									<div class="controls">
										<input class="input-xlarge disabled" name="ppalavra_chave" type="text" value="<?= $view_edit[0]["palavra_chave"] ?>"
										size="5" placeholder="..." >
									</div>
								</div>
										
										

								<div class="control-group">
									<label class="control-label" for="ppublico">publico</label>
									<div class="controls">
										<input class="input-xlarge disabled" name="ppublico" type="text" value="<?= $view_edit[0]["publico"] ?>"
										size="5" placeholder="..." >
									</div>
								</div>
										
										

								<div class="control-group">
									<label class="control-label" for="purl">url</label>
									<div class="controls">
										<input class="input-xlarge disabled" name="purl" type="text" value="<?= $view_edit[0]["url"] ?>"
										size="5" placeholder="..." >
									</div>
								</div>
										
										
                              
									  	<div class="control-group">
											<label class="control-label" for="pobjetivo">objetivo</label>
											<div class="controls">
												<textarea class="cleditor" name="pobjetivo" rows="3"><?= $view_edit[0]["objetivo"] ?></textarea>
											</div>
										</div>
		
								<div class="control-group">
									<label class="control-label" for="pfonte">fonte</label>
									<div class="controls">
										<input class="input-xlarge disabled" name="pfonte" type="text" value="<?= $view_edit[0]["fonte"] ?>"
										size="5" placeholder="..." >
									</div>
								</div>
										
										
									<div class="control-group">
									<label class="control-label" for="pcolecao">colecao</label>
									<div class="controls">
										<?= // "nome do campo" , "array com dados" , "chave" , "campo titulo" , "selecionado" 
											$this->html->ComboBox( "pid_colecao" , $view_colecao , "id" , "descricao" , $view_edit[0]["id_colecao"] ) 
										?>
									</div>
								</div>
								
										
									<div class="control-group">
									<label class="control-label" for="precurso">recurso</label>
									<div class="controls">
										<?= // "nome do campo" , "array com dados" , "chave" , "campo titulo" , "selecionado" 
											$this->html->ComboBox( "pid_recurso" , $view_recurso , "id" , "descricao" , $view_edit[0]["id_recurso"] ) 
										?>
									</div>
								</div>
								
										
									<div class="control-group">
									<label class="control-label" for="pnivel">nivel</label>
									<div class="controls">
										<?= // "nome do campo" , "array com dados" , "chave" , "campo titulo" , "selecionado" 
											$this->html->ComboBox( "pid_nivel" , $view_nivel , "id" , "descricao" , $view_edit[0]["id_nivel"] ) 
										?>
									</div>
								</div>
								
										
									<div class="control-group">
									<label class="control-label" for="pareatema">areatema</label>
									<div class="controls">
										<?= // "nome do campo" , "array com dados" , "chave" , "campo titulo" , "selecionado" 
											$this->html->ComboBox( "pid_areatema" , $view_areatema , "id" , "descricao" , $view_edit[0]["id_areatema"] ) 
										?>
									</div>
								</div>
								
										

								<label style="margin:20px;">
									<input 
									type="checkbox" 
									<?php
									
									if( $view_edit[0]["status"] == true ){
										echo 'checked="checked"';					
									}else{
										echo '';
									}
									
									 ?>
									name="pstatus" 
									value="1" id="check_ativo_0" />
							  Ativo
							</label>

                          
							  <div class="form-actions">
								<button type="submit" class="btn btn-primary">Salvar</button>
								<button type="button" onclick="window.location='/downloads/admin'" class="btn">Cancelar</button>
							  </div>
							</fieldset>
					  </form>
					
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
			
			<div class="row-fluid sortable">
				<div class="row-fluid sortable">
				  <div class="box span12">
				    
					<div class="box-header">
				      <h2>
						  <i class="icon-align-justify"></i>
						  <span class="break"></span>
						  Combined All Table
					  </h2>
					     <div class="box-icon"> 
							<a href="#" class="btn-setting">
								<i class="icon-wrench"></i>
							</a> 
							<a href="#" class="btn-minimize">
								<i class="icon-chevron-up"></i>
							</a>
							<a href="#" class="btn-close">
								<i class="icon-remove"></i>
							</a> 
						</div>
			        </div>
				    
					
					<div class="box-content">
						<table class="table table-bordered table-striped table-condensed">
							
							<thead>
								<tr>
									<th width="70">Código</th>
									<th>subtitulo</th><th>resumo</th>
									<th style="width:50px;" >Ativo</th>
									<th width="150"> </th>
								</tr>
							</thead>
				        
							<tbody id="datagrid">
						<?php foreach ( $view_lista as $item ):  ?>
								<tr>
									<td><?= $item["id"] ?></td>
									<th><?= $item["subtitulo"] ?></th><th><?= $item["resumo"] ?></th>
												<td>
									<?php
									   
									   if( $item["status"] == true ){
											$ativo = 'checked="checked"';
										}else{
											$ativo = "";	
										}
									   
									   ?>                
										
										<input 	type="checkbox" <?= $ativo ?> 
												onclick="window.location='/downloads/status/secao/<?= $item["id"] ?>'" 
												name="pstatus" 
												id="pstatus" />
									</td><td class="center">
									<!--	<a class="btn btn-success" href="#">
											<i class="icon-zoom-in icon-white"></i>  
										</a>
									-->	
										<a class="btn btn-info" href="/downloads/editar/secao/<?= $item["id"] ?>">
												<i class="icon-edit icon-white"></i>
										</a>
										<a class="btn btn-danger" href="#" onclick="openExcluir( <?= $item["id"] ?> , 'downloads' )">
												<i class="icon-trash icon-white"></i> 
										</a>
									</td>
								</tr>
							<?php endforeach; ?>
							</tbody>  
						
						</table>
				
						<!-- Página -->
                        <div class="tablenav bottom">
                            <div class="tablenav-pages one-page">
                                <div style="margin:0; padding:0;float:left;" class="holder"></div> 
                            </div>
                            <br class="clear" />
                            <br/>
                            <span style="float:left;" class="displaying-num"><?= sizeof( $view_lista ) ?> itens</span>
                        </div>
						<br class="clear" />
                        <br class="clear" />
					  
					  				  
			        </div>
			      </div>
				  <!--/span-->
			  </div>
				<!--/span-->

			</div><!--/row-->
    
					<!-- end: Content -->
        